<template>
    <div>
        <!-- 轮播图 -->
        <mt-swipe :auto="4000">
            <mt-swipe-item>1</mt-swipe-item>
            <mt-swipe-item>2</mt-swipe-item>
            <mt-swipe-item>3</mt-swipe-item>
        </mt-swipe>

        <!-- 九宫格 -->
        <div class="mui-content">
		        <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                        <router-link to="./home/newlist">
		                    <span class="mui-icon mui-icon-home"></span>
		                    <div class="mui-media-body">News</div>
                        </router-link>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                        <router-link to="/home/photo">
		                    <span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
		                    <div class="mui-media-body">Email</div>
                        </router-link>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                        <router-link to="/home/product">
		                    <span class="mui-icon mui-icon-chatbubble"></span>
		                    <div class="mui-media-body">Chat</div>
                        </router-link>
                    </li>
	
		        </ul> 
		</div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            lunbo: []
        }
    },
    created(){
        this.getLunBo();
    },
    methods: {
        getLunBo(){
            this.$http.jsonp('https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su',{
                params: {wd: 'a'},
                jsonp: 'cb'
            }).then(result => {
                    console.log(result.body);
            });
        }
    }
}

</script>

<style lang="scss" scoped>
    .mint-swipe {
        height: 200px;

        .mint-swipe-item {
            &:nth-child(1) {
                background: #f40;
            }

             &:nth-child(2) {
                background: #096;
            }

             &:nth-child(3) {
                background: #369;
            }    
        }

      

    }
    
    .mui-grid-view.mui-grid-9 {
        background: #fff;
        .mui-table-view-cell{
            border: none;
        }
    }

   
</style>


